//lodash工具库
const _ = require('lodash');

const path = require('path');

let config = {
    "staticDir":path.join(__dirname,'..','assets'),
    "templatesDir":path.join(__dirname,'..','views')
}

if(process.env.NODE_ENV == 'development'){
    let localPort = {
        port:8080
    };
    //合并对象
    _.assignIn(config,localPort);
}
if(process.env.NODE_ENV == 'production'){
    let prodPort = {
        port:80
    };
    _.assignIn(config,prodPort);
}
module.exports = config;